package com.example.userservice.config;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.example.userservice.apollo.TestApolloAnnotationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableApolloConfig
public class AppConfig {
    @Bean
    public TestApolloAnnotationBean testApolloAnnotationBean() {
        System.out.println("配置类@Bean给容器中添加组件了...");
        return new TestApolloAnnotationBean();
    }
}
